package com.wuzhiming.istudy.service;

import com.wuzhiming.istudy.pojo.Course;
import com.wuzhiming.istudy.pojo.CourseStage;

import java.util.List;

/**
 * @ClassName: CourseStageService
 * @Description: 课程阶段service
 * @Author:zhimingw
 * @Version 1.0
 * @since 2022/3/5 13:00
 */
public interface CourseStageService {
    /***
    * @Description: 查询全部阶段
    * @Param: []
    * @return: java.util.List<com.wuzhiming.istudy.pojo.CourseStage>
    * @Author: zhimingw
    * @Date: 2022/3/5
    */
    List<CourseStage> queryAllById(Integer courseTypeId);

    /**
     * @Description: 获取课程阶段的数量
     * @Param: []
     * @return: java.lang.Integer
     * @Author: zhimingw
     * @Date: 2021/7/5
     */
    Integer getCount(Integer status);

    /**
    * @Description: 获取所有的课程阶段
    * @Param: []
    * @return: java.util.List<com.wuzhiming.istudy.pojo.CourseStage>
    * @Author: zhimingw
    * @Date: 2022/3/31
    */
    List<CourseStage> queryAll();

    /**
     * @Description: 添加courseStage
     * @Param: [tag]
     * @return: boolean
     * @Author: zhimingw
     * @Date: 2021/5/31
     */
    boolean insert(CourseStage courseStage);

    /**
    * @Description: 查询单条数据
    * @Param: [id]
    * @return: com.wuzhiming.istudy.pojo.CourseStage
    * @Author: zhimingw
    * @Date: 2022/3/31
    */
    CourseStage queryById(Integer id);
    
    /**
    * @Description: 更新课程阶段
    * @Param: [courseStage]
    * @return: boolean
    * @Author: zhimingw
    * @Date: 2022/3/31
    */
    boolean update(CourseStage courseStage);

    /**
     * @Description: 删除Tag
     * @Param: [id]
     * @return: boolean
     * @Author: zhimingw
     * @Date: 2021/5/31
     */
    boolean deleteById(Integer id);
}
